Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add memory usage check to the CI #1028

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

monthonk
Copy link
Contributor

Description of change

A first pass to monitor Mountpoint resource utilization. This change would capture peak memory usage from each benchmark run, save them in gh-pages branch, and compare the numbers to the previous commit the same way we do for performance regression check.

Example for the results: https://monthonk.github.io/mountpoint-s3/dev/bench/peak_mem_usage/

Does this change impact existing behavior?

No

Does this change need a changelog entry in any of the crates?

No, benchmark change only


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

let line = line.unwrap();
if line.contains(&args.log_filter_str) {
let iter = line.split_whitespace();
if let Some(Ok(value)) = iter.last().map(|last| last.parse::<u64>()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we fail with an error if we've failed to parse an int from the matching line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if that would be too fragile. There may be some lines in the log that matching the filter string by accident and I think we can just skip them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make the matching rule stricter then? I think we won't ever be confident in benchmarking results, if we may just skip relevant metrics

mountpoint-s3/Cargo.toml Show resolved Hide resolved
mountpoint-s3/scripts/fs_bench.sh Show resolved Hide resolved
.github/workflows/bench_s3express.yml Show resolved Hide resolved
Signed-off-by: Monthon Klongklaew <monthonk@amazon.com>
Signed-off-by: Monthon Klongklaew <monthonk@amazon.com>
@monthonk monthonk added this pull request to the merge queue Sep 24, 2024
Merged via the queue into awslabs:main with commit 5d5e0ac Sep 24, 2024
23 checks passed
@monthonk monthonk deleted the check_mem_usage branch September 24, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants